//
//  ContenViewController.m
//  ReadBook
//
//  Created by Mac on 15-12-17.
//
//

#import "ContenViewController.h"

@interface ContenViewController ()
{
    UITextView *tv;
}
@end

@implementation ContenViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    CGRect rect = self.view.bounds;
    rect.origin.y = 0;
    rect.size.height -= 64 + 44;
    tv = [[UITextView alloc] initWithFrame:rect];
    tv.text = _text;
    tv.font = [tv.font fontWithSize:24.0];
    tv.editable = NO;
    tv.scrollEnabled = NO;
    [self.view addSubview:[UIView new]];
    [self.view addSubview:tv];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
